home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun 1986 September & October
/
rerun-1986-09-10.d64
/
graphix demo 2
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
710b
|
22 lines
100 v=53248:fori=0to63:readd:poke50432+i,d:next:gosub165
105 geta$:ifa$="[133]"thengosub165
110 ifa$="[134]"thengosub175
115 ifa$="[135]"then185
120 j=peek(56320)
125 if(jand16)=0then:!pn,0
130 dx=sgn(jand4)-sgn(jand8):dy=sgn(jand1)-sgn(jand2):x=x+dx:y=y+dy
135 ifx<0thenx=319
140 ifx>319thenx=0
145 ify<0theny=199
150 ify>199theny=0
155 x1=x+13:y1=y+40:s=(x1>255):pokev,x1+s*256:pokev+16,-1*s:pokev+1,y1
160 !pl,x,y:!pn,1:goto105
165 !sc,0:pokev+21,0
170 print"[147]enter background and foreground colors":inputb,f:b=band15:f=fand15
175 x=160:y=100:pokev+39,f:pokev,x+13:pokev+1,y+40:pokev+21,1
180 !sc,2:!co,b+f*16:poke52216,20:!pn,1:return
185 !sc,0:print"[147]":pokev+21,0:end
190 data0,126,0,1,129,128,6,0,96,8,0,16,16,0,8,32,0,4,64,0,2,64
195 data0,2,128,0,1,128,0,1,128,16,1,128,0,1,128,0,1,64,0,2,64,0
200 data2,32,0,4,16,0,8,8,0,16,6,0,96,1,129,128,0,126,0,13